package com.situ.spring.service.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.spring.dao.IStudentDao;
import com.situ.spring.service.IStudentService;
//@Service("studentService")
@Service
public class StudentServiceImpl implements IStudentService{
	
	
	
	//@Resource(name = "studentDao")
	@Autowired
	private IStudentDao studentDao;
	
	/*
	 * public void setStudentDao(IStudentDao studentDao) {
	 * System.out.println("StudentServiceImpl.setStudentDao()"); 
	 * this.studentDao = studentDao; }
	 */

	@Override
	public void select() {
		System.out.println("StudentServiceImpl.select()");
		studentDao.select();
	}

	@Override
	public void update() {
	System.out.println("StudentServiceImpl.update()");
		
	}
}
